﻿<%@ Page Language="C#" MasterPageFile="~/Portal.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Microsoft.InformationSecurity.CISF.SecurityPortal.UI.Web.PortalHomepage" Title="Untitled Page" %>
<%@ Register Src="~/Widgets/MasterControls/WidgetHost.ascx" TagName="widgethost" TagPrefix="widget" %>
<%@ Register Src="~/Widgets/MasterControls/WidgetPanelContainer.ascx" tagname="threecolpanel" tagprefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <asp:UpdatePanel ID="UpdatePanelWebpart" runat="server" UpdateMode="conditional">        
        <ContentTemplate>
            <div id="topnav_widgetmenu">
                <div id="topnav_widget_addmore">
                    <asp:ImageButton ID="AddMoreToThisPageImage" runat="server" SkinID="AddMoreToThisPageSkin" AlternateText="Add More Widgets" onclick="AddMoreWidgets_Click"/>
                </div>
                <div id="topnav_widget_reset">
                    <asp:ImageButton ID="ResetThisPageImage" runat="server" SkinID="ResetThisPageImageSkin" AlternateText="Reset Widgets" onclick="ResetWidgets_Click"/>
                </div>
            </div>
        <div id="reset_homepage_panel_container">
            <asp:Panel ID="ResetHomePagePanel" runat="Server" CssClass="resethomepage_panel" Visible="False">
                <p class="reset_homepage_message">Are you sure?</p>
                <p class="reset_homepage_message_content">When you reset your homepage it goes back to its original setings and any changes you've made including added web parts will be lost.</p>
                <div class="ResetHomePageSave">
                    <asp:Button ID="ResetHomePageSave" runat="server" Text="Reset" 
                        CssClass="reset_thispage_button" onclick="ResetHomePageSave_Click"/>
                    <asp:Button ID="ResetHomePageCancel" runat="server" Text="Cancel" 
                        CssClass="reset_thispage_button" onclick="ResetHomePageCancel_Click" />
                </div>
            </asp:Panel>
        </div>
        <div id="addmore_panel_container">
            <asp:Panel ID="AddMoreToThisPagePanel" runat="Server" CssClass="addmore_panel" Visible="False">
                <p class="addcontent_message">Add and remove your preferred web parts:</p>
                <div class="AddMoreToThisPageWebparts">
                <asp:ImageButton ID="WidgetListPreviousLinkButton" runat="server" SkinID="WidgetListPreviousLinkButtonSkin" OnClick="WidgetListPreviousLinkButton_Click" />
                <asp:DataList CssClass="addcontent_webparts" ID="WidgetDataList" runat="server" RepeatDirection="Vertical" RepeatColumns="5" RepeatLayout="Table" CellPadding="3" CellSpacing="3" EnableViewState="False" ShowFooter="False" ShowHeader="False" Width="98%" OnItemDataBound="WidgetDataList_ItemDataBound">
                    <ItemTemplate><%--<asp:Image ID="Icon" ImageUrl='<%# Eval("Icon") %>' ImageAlign="AbsMiddle" runat="server" />&nbsp;--%><asp:CheckBox ID="CheckBox1" runat="server"></asp:CheckBox></ItemTemplate>
                </asp:DataList>              
                <asp:ImageButton ID="WidgetListNextButton" runat="server" SkinID="WidgetListNextButtonSkin" OnClick="WidgetListNextButton_Click" />                    
                </div>
                <div class="AddMoreToThisPageSave">
                    <asp:Button ID="SaveSettings" runat="server" Text="Save" 
                        CssClass="addmore_tothispage_button" onclick="AddWidgetsSave_Click"/>
                    <asp:Button ID="CancelSettings" runat="server" Text="Cancel" 
                        CssClass="addmore_tothispage_button" onclick="AddWidgetsCancel_Click" />
                </div>
            </asp:Panel>
        </div>
        </ContentTemplate>

    </asp:UpdatePanel>        
    
    <asp:UpdateProgress ID="updProgress" runat="server" AssociatedUpdatePanelID="UpdatePanelWebpart" DisplayAfter="200"  >
        <ProgressTemplate>
            <div id="updProgresscontainer">
                <asp:Image ID="imgUpdateProgress" runat="server" SkinID="updProgressSkin" CssClass="updProgress_image" ImageAlign="Middle" />&nbsp;
                <asp:Label ID="lblWaitMessage" Text="Please wait while processing data..." CssClass="updProgress_text"
                                            Font-Bold="true" runat="server"></asp:Label>
            </div>                                        
        </ProgressTemplate> 
    </asp:UpdateProgress>

    <div id="widget_contents">
        <div id="widget_contents_wrapper">
            <div id="widget_area">
                <div id="widget_area_wrapper">
		            <asp:UpdatePanel ID="UpdatePanelLayout" runat="server" UpdateMode="conditional">        
                        <ContentTemplate>
                            <uc3:threecolpanel id="ThreeColPanelLayout" runat="server" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </div>
        </div> 
    </div>

</asp:Content>
